package com.ruoyi.competitionNEW.mapper;

import com.ruoyi.competitionNEW.domain.Competition;
import com.ruoyi.file_info.domain.CompetitionFileInfo;

import java.util.List;


/**
 * 赛事Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-21
 */
public interface CompetitionMapper 
{
    /**
     * 查询赛事
     * 
     * @param id 赛事主键
     * @return 赛事
     */
    public Competition selectCompetitionById(Long id);

    /**
     * 查询赛事列表
     * 
     * @param competition 赛事
     * @return 赛事集合
     */
    public List<Competition> selectCompetitionList(Competition competition);

    /**
     * 新增赛事
     * 
     * @param competition 赛事
     * @return 结果
     */
    public int insertCompetition(Competition competition);

    /**
     * 修改赛事
     * 
     * @param competition 赛事
     * @return 结果
     */
    public int updateCompetition(Competition competition);

    /**
     * 删除赛事
     * 
     * @param id 赛事主键
     * @return 结果
     */
    public int deleteCompetitionById(Long id);

    /**
     * 批量删除赛事
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCompetitionByIds(Long[] ids);

    /**
     * 试题管理
     * @param competitionFileInfo
     * @return
     */
    public List<CompetitionFileInfo> selectCompetitionFileInfoList(CompetitionFileInfo competitionFileInfo);

}
